s = '你好！'
print(type(s))  # <class 'str'>
# str -> bytes
# 编码
b = s.encode()
print(type(b))

# bytes -> str
# 解码
s = b.decode()
print(type(s))
print(s)